import {mapGetters} from 'vuex'
export  const mixinsTest ={
	computed:{
		...mapGetters('cart',['total'])
	},
	onShow(){
		this.setBadge()
	},
	methods:{
		setBadge(){
			var newTotal=''
			if(this.total!==0){
				newTotal=this.total+''
			}
			uni.setTabBarBadge({
				index:2,
				text:newTotal
				
			})
		}
	}
}